/**
 * @this RXFormSubmitButton: form 的提交按钮
 *
 * @flow
 * ----
 *
 * 唯一注意的是，，这个 按钮的背景图片，移植代码需注意
 */
import React, { Component } from 'react'

import FormSubmitHOC from './core/FormSubmitHOC'
import ButtomBtn from '../BottomBtn'

class RXFormSubmitButton extends Component {
  constructor(props) {
    super(props)
  }

  static propTypes = {
    ...ButtomBtn.propTypes,
  }

  static defaultProps = {
    ...ButtomBtn.defaultProps,
  }

  render() {
    const { style, ...others } = this.props

    return (
      <ButtomBtn btnStyle={[{ height: 30 }, style]} { ...others } />
    )
  }
}

export default FormSubmitHOC(RXFormSubmitButton)